FROM alpine:3.12

# LABEL  <k1>=<value> [<k2>=<v2>…]
LABEL "maintainer"="hb-in@qq.com"


#ARG uid_
#ARG gid_
#ARG username_

# aria2.conf  entrypoint.sh
#COPY --chown=${uid_}:${gid_} etc/* /etc/
COPY scripts/* /scripts/
RUN chmod +x /scripts/start.sh

# openssl/focal-security,focal-updates 1.1.1f-1ubuntu2.13
# openssl-1.1.1n-r0
## apk add openssl=1.1.1n-r0

#  openssl=1.1.1n-r0 
#   ->  openssl=~1.1.1
RUN apk update \
    && apk add --no-cache \
        openssl=~1.1.1 \
    && rm -rf /var/cache/apk/*  \
    && rm -rf /root/.cache  \
    && rm -rf /tmp/* 


VOLUME ["/data"]

WORKDIR /scripts


ENTRYPOINT ["/scripts/start.sh"]
